Auto merge of #4085 - alexcrichton:fix-rewrite, r=matklad
authorbors <bors@rust-lang.org>
Mon, 22 May 2017 20:18:03 +0000 (20:18 +0000)
committerbors <bors@rust-lang.org>
Mon, 22 May 2017 20:18:03 +0000 (20:18 +0000)
Fix a serialization error on publish

In TOML we have to emit all keys before we emit all sub-tables, so to handle
that for dependencies just transform everything to an elaborated version.

Closes #4081


Trivial merge